﻿<%
_out.targetFile =  util.format('%s\\%s\\app\\metadata\\Manager.js', clientProjectDirectory,table.singular);
%>
Ext.define('<%= rootNamespace %>.<%= table.singular.toLowerCase() %>.metadata.Manager', {
    extend: 'Happy.metadata.Manager',
    singleton: true,
    requires: [
        '<%= rootNamespace %>.<%= table.singular.toLowerCase() %>.metadata.generated.<%= table.singular %>',
        '<%= rootNamespace %>.<%= table.singular.toLowerCase() %>.metadata.developing.<%= table.singular %>'
    ],

    constructor: function (config) {
        var me = this;

        config = config || {};

        config.metadatas = [
            <%= rootNamespace %>.<%= table.singular.toLowerCase() %>.metadata.generated.<%= table.singular %>.metadata,
            <%= rootNamespace %>.<%= table.singular.toLowerCase() %>.metadata.developing.<%= table.singular %>.metadata
        ];

        me.callParent([config]);
    }
});